const moment = require('moment')
moment.locale("zh-cn")
module.exports = {
  base: '/lys-Bolg_VuePress/',
  title: '人生如梦_转瞬即逝',
  description: '人生如梦_转瞬即逝',
  head: [
    ['link', { rel: 'icon', href: '/favicon.ico' }],
    ['mate', { name: 'author', content: 'Lys' }],
    ['meta', { name: 'keywords', content: '个人博客,Vuepress,web前端,JavaScript,HTML,Vue,web跨域,React,Nodejs' }],
    ['meta', { name: 'description', content: '个人博客,Vuepress,web前端,JavaScript,HTML,Vue,web跨域,React,Nodejs' }]
  ],
  themeConfig: {
    lastUpdated: '更新时间: ', // string | boolean
    logo: "/assets/img/logo.png",
    navbar: true, // 导航栏的显示
    nav: [
      { text: "Home", link: "/" },
      { text: "Guide", link: "/about" },
      {
        text: "Languages_version",
        items: [ // 第一层导航
          {
            text: "一", // 文本
            items: [ // 第二层导航
              { text: "about", link: "/about" },
            ],
          },
          {
            text: "二",
            items: [ // 第二层导航
              { text: "about1", link: "/about1" },
            ],
          },
          {
            text: "三",
            items: [ // 第二层导航
              { text: "about2", link: "/about2" },
            ],
          }
        ],
      },
      { text: "External", link: "https://gitee.com/lysimportant" },
    ],
    sidebar: [
      '/',
      'about',
      'about1',
      'about2',
    ]
  },
  plugins: [
    [
      '@vuepress/last-updated',
      {
        transformer: (timestamp, lang) => {
          return moment(timestamp).format('LLLL')
        }
      }
    ]
  ]
};
